package com.lyy.rev1ew.bean;

import com.lyy.rev1ew.model.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Component
public class BeanConfig {
    @Bean(name = {"user1","user2"})
    public User user(){
        User user=new User();
        return user;
    }
}
